package com.lhj.ordermicroservicedemo.controller;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableDiscoveryClient //注册到服务发现
@RestController
public class OrderController {
    @GetMapping ("/hello")
    public String getOrder(){
        return "Hello Spring Clude";
    }
}
